package asava.trees;

/**
 * @author Tim Richter
 */
public class While extends Tree {
    public Tree condition;
    public Tree body;

    public While(final Tree condition,
                 final Tree body) {
        this.condition = condition;
        this.body = body;
    }

    @Override
    public int kind() {
        return TreeKind.WHILE;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
